[PATCH] Simplified commit
authorthequackdaddy <pquack@gmail.com>
Wed, 16 Nov 2016 20:25:19 +0000 (14:25 -0600)
committerOle Streicher <olebole@debian.org>
Mon, 26 Dec 2016 17:33:56 +0000 (17:33 +0000)
Gbp-Pq: Name up_3239.patch

statsmodels/tools/grouputils.py

index 8e91bbacb625319c6542e23c32a19176144ce79b..481ee99d1f3894754e83aceb1d1cda3ecc944c2f 100644 (file)
@@ -403,6 +403,7 @@ class Grouping(object):
         """
         # TODO: refactor this
         groups = self.index.get_level_values(level).unique()
+        groups = np.array(groups)
         groups.sort()
         if isinstance(self.index, MultiIndex):
             self.slices = [self.index.get_loc_level(x, level=level)[0]